package org.jackysoft.service;

import java.util.Collection;

import org.jackysoft.data.IDataProvider;
import org.jackysoft.entity.Department;
import org.jackysoft.entity.DepartmentType;
import org.jackysoft.google.collection.ZTreeNode;
import org.springframework.dao.DataAccessException;

public interface DepartmentService extends IDataProvider<String,Department> {
	
	
	Collection<Department> getsByRoot()throws DataAccessException;
	Collection<Department> searchs(Department parent)throws DataAccessException;
	Collection<Department> getsByType(DepartmentType type)throws DataAccessException;
	void update(Department t,String... props) throws DataAccessException;	
	Collection<ZTreeNode> ztree(Department bean,Collection<DepartmentType> dtypes)throws DataAccessException;		
    Department getByName(String name) throws DataAccessException;
}